package com.ysy.logistics.mapper.sale;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysy.logistics.entities.sale.CusOrderGoods;
import com.ysy.logistics.entities.sale.dto.CusOrderGoodsDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/4/9 22:46
 **/
public interface CusOrderGoodsMapper extends BaseMapper<CusOrderGoods> {
    List<CusOrderGoodsDto> getGoodsListByOrderId(String id);

    Long totalGoodsNumByOrderIdAndGoodsId(@Param("orderId") String orderId,@Param("goodsId") String goodsId);
}
